package com.zhangjun.demo.controller;

import com.zhangjun.demo.pojo.LoginReq;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;

@Controller
public class LoginController {

    @PostMapping("toMain")
    private String toMain(LoginReq loginReq){
        return "redirect:main.html";
    }

    @PostMapping("toError")
    private String toError(LoginReq loginReq){
        return "redirect:error.html";
    }

}
